//
//  ValueStore.cpp
//  identist
//
//  Created by Denveryee on 14-3-29.
//
//

#include "ValueStore.h"
#include "cocos2d.h"

USING_NS_CC;

ValueStore::ValueStore(){}
ValueStore::~ValueStore(){}

std::string static getPlayLevel(){
    return CCUserDefault::sharedUserDefault()->getStringForKey("play_level");
}

void static setPlayLevel(std::string playLevel){
    CCUserDefault::sharedUserDefault()->setStringForKey("play_level", playLevel);
}

std::string static getCurrentLevel(){
    return CCUserDefault::sharedUserDefault()->getStringForKey("current_level");
}

void static setCurrentLevel(std::string currentLevel){
    CCUserDefault::sharedUserDefault()->setStringForKey("current_level", currentLevel);
}

std::string static getTool0(){
    return CCUserDefault::sharedUserDefault()->getStringForKey("tool0");
}

void static setTool0(std::string grade){
    CCUserDefault::sharedUserDefault()->setStringForKey("tool0", grade);
}

std::string static getTool1(){
    return CCUserDefault::sharedUserDefault()->getStringForKey("tool1");
}

void static setTool1(std::string grade){
    CCUserDefault::sharedUserDefault()->setStringForKey("tool1", grade);
}

std::string static getTool2(){
    return CCUserDefault::sharedUserDefault()->getStringForKey("tool2");
}

void static setTool2(std::string grade){
    CCUserDefault::sharedUserDefault()->setStringForKey("tool2", grade);
}

std::string static getTool3(){
    return CCUserDefault::sharedUserDefault()->getStringForKey("tool3");
}

void static setTool3(std::string grade){
    CCUserDefault::sharedUserDefault()->setStringForKey("tool3", grade);
}

std::string static getTool4(){
    return CCUserDefault::sharedUserDefault()->getStringForKey("tool4");
}

void static setTool4(std::string grade){
    CCUserDefault::sharedUserDefault()->setStringForKey("tool4", grade);
}

std::string static getTool5(){
    return CCUserDefault::sharedUserDefault()->getStringForKey("tool5");
}

void static setTool5(std::string grade){
    CCUserDefault::sharedUserDefault()->setStringForKey("tool5", grade);
}